<p>
  <%= condition.class.human_attribute_name(:description) %>
</p>
<%= fields_for param_prefix, condition do |form| %>
  <div class="field taxons_condition_taxons">
    <%= form.label :taxon_ids_string, t('solidus_promotions.taxon_condition.choose_taxons') %>
    <%= form.hidden_field :taxon_ids_string, value: condition.taxon_ids.join(","), is: "taxon-picker", class: "fullwidth" %>
  </div>

  <div class="form-group">
    <%
      match_policy_options = options_for_select(
        SolidusPromotions::Conditions::Taxon::MATCH_POLICIES.map { |s| [t("solidus_promotions.taxon_condition.match_#{s}"),s] },
        condition.preferred_match_policy
      )
    %>
    <% select = form.select :preferred_match_policy, match_policy_options %>
    <%= form.label :preferred_match_policy, t('solidus_promotions.taxon_condition.label', select: select).html_safe %>
  </div>
<% end %>
